<template>
  <div
    class="rankitem"
    v-if="obj"
  >
    <img :src="obj.coverImgUrl">
    <div class="detail">
      <div class="title">{{obj.name}} <img src="../assets//pic/right.png">
      </div>
      <ul>
        <!-- <li
          v-for="(item,index) in obj.tracks.slice(0, 3)"
          :key="item.id"
        >
          {{index+1}}.{{item.name}} - {{item.ar[0].name}}
        </li> -->
   <li
          v-for="(item,index) in obj.tracks"
          :key="index"
        >
          {{index+1}}.{{item.first}} - {{item.second}}
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: {
    obj: Object,
  },
  created() {},
};
</script>
<style lang="less" scoped>
.rankitem {
  height: 105px;
  margin: 15px 15px;
  // overflow: hidden;
  background-color: #fff;
  display: flex;
  border: 1px solid rgba(225, 225, 227,0.1);
    border-radius: 20px;

  img {
    border-radius: 20px;
  }
  .detail {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 500px;
    font-size: 14px;
    .title {
      img {
        display: inline;
        width: 6px;
        margin-left: 2px;
      }
    }
    ul {
      margin-top: -20px;
      width: 100%;
      color: #a1a4b3;
      font-size: 12px;
      line-height: 18px;
    }
  }
}
</style>